package org.starsource.forum.server.dao;

import org.starsource.forum.client.exception.DatabaseException;
import org.starsource.forum.client.exception.UserNotFoundException;
import org.starsource.forum.server.domain.User;

/**
 * @author james
 *
 */
public interface UserDao {
	public void save(User user) throws DatabaseException;
	public void update(User user) throws DatabaseException;
	public void delete(User user) throws DatabaseException;
	
	public User getUser(int id) throws UserNotFoundException, DatabaseException;
	public User getUser(String account) throws UserNotFoundException, DatabaseException;
	public User getUser(String account, String password) throws UserNotFoundException, DatabaseException;
}
